﻿<%@ Page Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="Tin-Tuc.aspx.cs" Inherits="Tin_Tuc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title><asp:Literal runat="server" ID="ltrTieude"> </asp:Literal>
    - <%=Common.tieude %></title>
    <link rel="stylesheet" type="text/css" href="CSS/style-lienhe.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="left-content">
        <!-- start left-content -->
        <div class="tintuc-content">
            <!-- Hien thi tin tuc -->
            <asp:DataList ID="dlTinTuc" runat="server" RepeatColumns="1" CellPadding="2" RepeatLayout="Flow">
                <ItemTemplate>
                    <div class="sub-tintuc hr-green">
                        <div class="img-sub-tintuc">
                            <asp:HyperLink ID="HyTieuDe" runat="server" CssClass="TinTuc" NavigateUrl='<%#"~/" +  Eval("Id") + "_" + GetTieuDe(Eval("TieuDe")) + "_TinTuc.aspx"%>'>
                                <img title="<%#Eval("TomTat") %>" src="<%# "Upload/TinTuc/" +Eval("AnhDaiDien") %>"
                                    width="134px" height="107px" alt="1144953 3 2x">
                            </asp:HyperLink>
                        </div>
                        <div class="nd-sub-tintuc">
                            <div class="td-sub-tintuc">
                                <a href='<%# Eval("Id") + "_" + GetTieuDe(Eval("TieuDe")) + "_TinTuc.aspx" %>'>
                                    <%# Eval("TieuDe") %>
                                </a>
                            <div class="bd-sub-tintuc">
                                <p>
                                    <%# Eval("Tomtat").ToString().Length > 250 ? Eval("TomTat").ToString().Substring(0, 250) + "..." : Eval("TomTat")%></p>
                                
                            </div>
                            <div class="xt-sub-tintuc">
                                <asp:HyperLink ID="HyperLink1" runat="server" CssClass="TinTuc" NavigateUrl='<%#"~/" +  Eval("Id") + "_" + GetTieuDe(Eval("TieuDe")) + "_TinTuc.aspx"%>'>
                                Xem thêm
                                </asp:HyperLink>
                            </div>
                        </div>
                    </div>
                    </div>
                </ItemTemplate>
            </asp:DataList>
        </div>
        <!-- hien thi tin tuc lien quan -->
        <div class="tintuc-lienquan">
            <asp:DataList ID="dlTinLienQuan" runat="server" RepeatColumns="2" RepeatLayout="Flow">
                <ItemTemplate>
                    <div style="float: left" id="TinTucCu1">
                        <img src="~/Images/list-style.png" width="8px" height="8px" >
                         <asp:HyperLink ID="HyTieuDe" runat="server" CssClass="TinTucCu" NavigateUrl='<%#"~/" +  Eval("Id") + "_" + GetTieuDe(Eval("TieuDe")) + "_TinTuc.aspx"%>'>
                            <%# Eval("Tomtat").ToString().Length > 50 ? Eval("TomTat").ToString().Substring(0, 50) + "..." : Eval("TomTat")%></p>
                         </asp:HyperLink>
                    </div>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
    <dx:QuangCaoRight ID="quangcaoRight" runat="server" />
    <script type="text/javascript">
        $(".ul-menu-bar li a").each(function () {
            if ($(this).text() === "TIN TỨC") {
                $(this).addClass("title-black");
            }
        });
    </script>
</asp:Content>
